Skip to content

Add workspace support for full scans#1095

Closed
lelia wants to merge 4921 commits into
v1.xfrom
lelia/add-workspace-support
Closed

Add workspace support for full scans#1095
lelia wants to merge 4921 commits into
v1.xfrom
lelia/add-workspace-support

Conversation

@lelia
Copy link
Copy Markdown

@lelia lelia commented Feb 26, 2026

Summary

Adds --workspace support to socket scan create so scans can be associated with the correct Socket workspace (API workspace query param on CreateOrgFullScan). Also allows persisting a default workspace via socket scan setup.

Changes

  • CLI flag: socket scan create --workspace <string> (optional)
  • Config: socket scan setup can persist defaults.scan.create.workspace in .socket/socket.json
  • API plumbing: forwards workspace through handleCreateNewScanfetchCreateOrgFullScan → SDK createFullScan(..., { workspace })
  • Also fixed TS check failures in VFS tool utilities so that pnpm run check passes locally
  • Also updated pnpm-lock.yaml to resolve an outdated-lockfile mismatch during typecheck

Testing

Added a unit test ensuring workspace is passed through:
packages/cli/test/unit/commands/scan/fetch-create-org-full-scan.test.mts

refs: SocketDev/socket-python-cli#164 + SocketDev/socket-sdk-python#68


Note

Medium Risk
Adds a new workspace parameter that flows into the full-scan creation API request, which can change how scans are associated server-side. Also adjusts VFS tool extraction typing/tool lists and lockfile entries, which could affect SEA extraction behavior if assumptions about bundled tools are wrong.

Overview
Adds --workspace support to socket scan create, including reading a default from .socket/socket.json and passing it through handleCreateNewScanfetchCreateOrgFullScan → SDK createFullScan as an optional API parameter.

Extends socket scan setup to prompt for and persist defaults.scan.create.workspace (defaulting to the git repo owner when available), and updates debug output to include the workspace prefix.

Fixes TypeScript issues in VFS extraction utilities (notably safer typing/validation in basics/vfs-extract and expanding dlx/vfs-extract’s EXTERNAL_TOOLS list), adds a unit test covering workspace passthrough, and updates pnpm-lock.yaml to resolve lockfile/specifier mismatches.

Written by Cursor Bugbot for commit ed95813. This will update automatically on new commits. Configure here.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants